/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.hidden {
    display: none !important;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
}

/* 个人中心容器 */
.user-center-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

.user-profile {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: #3498db;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.user-menu ul {
    list-style: none;
}

.user-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.user-menu li a:hover {
    background: #34495e;
}

.user-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.user-menu li.active a {
    background: #3498db;
}

/* 主内容区样式 */
.content-area {
    flex: 1;
    padding: 30px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.content-section h2 i {
    margin-right: 10px;
    color: #3498db;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* 安全项样式 */
.security-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.security-item h3 {
    margin-bottom: 5px;
}

.bind-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.avatar-upload {
    text-align: center;
    margin-top: 20px;
}

.preview-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px dashed #ddd;
}

.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#avatar-input {
    margin: 20px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content-area {
        padding: 20px;
    }
}